package com.goodfox.web.biz.forest.service;

import java.util.List;

import javax.servlet.http.HttpSession;

import com.goodfox.web.biz.forest.entity.WoodlandFour;
import com.goodfox.web.biz.forest.entity.WoodlandPhoto;
import com.goodfox.web.biz.forest.entity.WoodlandSpecies;

public interface WoodlandService {
	
	/**
	 * 查询林地四至列表
	 * @param fourId
	 * @return
	 */
	List<WoodlandFour> queryWoodlandFourList(String woodId);

	/**
	 * 新增林地四至
	 * @param entity
	 * @param loginLogId
	 */
	void addWoodlandFour(WoodlandFour entity,String loginLogId);
	
	/**
	 * 更新林地四至
	 * @param oldEny
	 * @param newEny
	 * @param loginLogId
	 */
	void modifyWoodlandFour(WoodlandFour oldEny,WoodlandFour newEny,String loginLogId);
	
	/**
	 * 移除林地四至
	 * @param entity
	 * @param loginLogId
	 */
	void removeWoodlandFour(WoodlandFour entity,String loginLogId);
	
	/**
	 * 查询林地四至
	 * @param fourId
	 * @return
	 */
	WoodlandFour getWoodlandFour(String fourId);
	
	/**
	 * 查询林地照片列表
	 * @param photoId
	 * @return
	 */
	List<WoodlandPhoto> queryWoodlandPhotoList(String woodId);

	/**
	 * 新增林地照片
	 * @param entity
	 * @param loginLogId
	 */
	void addWoodlandPhoto(WoodlandPhoto entity,String loginLogId);
	
	/**
	 * 更新林地照片
	 * @param oldEny
	 * @param newEny
	 * @param loginLogId
	 */
	void modifyWoodlandPhoto(WoodlandPhoto oldEny,WoodlandPhoto newEny,String loginLogId);
	
	/**
	 * 移除林地照片
	 * @param entity
	 * @param loginLogId
	 */
	void removeWoodlandPhoto(WoodlandPhoto entity,String loginLogId);
	
	/**
	 * 移除林地照片（页面直接使用）
	 * @param photoIdPath
	 * @param loginLogId
	 * @param session
	 */
	void autoRemoveWoodlandPhoto(String photoIdPath,HttpSession session);
	
	/**
	 * 查看林地照片
	 * @param photoId
	 * @return
	 */
	WoodlandPhoto getWoodlandPhoto(String photoId);
	
	/**
	 * 查询林地树种列表
	 * @param fourId
	 * @return
	 */
	List<WoodlandSpecies> queryWoodlandSpeciesList(String woodId);

	/**
	 * 新增林地树种
	 * @param entity
	 * @param loginLogId
	 */
	void addWoodlandSpecies(WoodlandSpecies entity,String loginLogId);
	
	/**
	 * 更新林地树种
	 * @param oldEny
	 * @param newEny
	 * @param loginLogId
	 */
	void modifyWoodlandSpecies(WoodlandSpecies oldEny,WoodlandSpecies newEny,String loginLogId);
	
	/**
	 * 移除林地树种
	 * @param entity
	 * @param loginLogId
	 */
	void removeWoodlandSpecies(WoodlandSpecies entity,String loginLogId);
}
